import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
import ListOne from './module/ListOne'
export default new Vuex.Store({
    state: {
        num: 1
    },
    mutations: {
        changeNum(state, count) {
            state.num += count
        }
    },
    actions: {
        numActions({ commit }, count) {
            commit("changeNum", count)
        }
    },
    getters: {
        douNum: state => state.num * 2
    },
    modules: {
        ListOne
    }
})